<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./common/element/element.css">
</head>
<body>
    <div id="app">
        <el-input v-model="username" placeholder="请输入内容" clearable></el-input>

        <el-button @click="printFun()">按钮</el-button>

        <br>

        <el-dropdown @click="printFun()">下拉菜单</el-dropdown>
    </div>
</body>
<script src="./common/js/vue.js"></script>
<script src="./common/element/element.js"></script>
<script>
    new Vue({
        el:'#app',
        data:{
            username:''
        },
        methods: {
            printFun(){
                console.log("方法")
            }
        },
    })
</script>
</html>